TARGET      = qtq
QT = core gui  \
    network \
    sql
DEPENDPATH += . \
    src \
    src/myqq \
    src/ui
INCLUDEPATH += . \
    src \
    src/myqq \
    src/ui
	
HEADERS     += src/myqq/webqq.hpp \
    src/myqq/util.hpp \
    src/myqq/utf8.hpp \
    src/myqq/qun.hpp \
    src/myqq/qqsocket.hpp \
    src/myqq/qqpacket.hpp \
    src/myqq/qqdef.hpp \
    src/myqq/qqcrypt.hpp \
    src/myqq/qqconn.hpp \
    src/myqq/qqclient.hpp \
    src/myqq/protocol.hpp \
    src/myqq/packetmgr.hpp \
    src/myqq/md5.hpp \
    src/myqq/loop.hpp \
    src/myqq/group.hpp \
    src/myqq/debug.hpp \
    src/myqq/crc32.hpp \
    src/myqq/config.hpp \
    src/myqq/buddy.hpp \
    src/ui/about.h \
    src/ui/mainwindow.h \
    src/ui/login.h \
    src/ui/qclickedlabel.h \
    src/ui/verifycodedialog.h \
    src/qtq_config.h \
    src/ui/buddychat.h \
    src/db.h \
    src/myqq/PackageRecvThread.hpp \
    src/dbhelper.h
SOURCES     += src/myqq/util.cpp \
    src/myqq/utf8.cpp \
    src/myqq/qun.cpp \
    src/myqq/qqsocket.cpp \
    src/myqq/qqpacket.cpp \
    src/myqq/qqcrypt.cpp \
    src/myqq/qqclient.cpp \
    src/myqq/protocol.cpp \
    src/myqq/prot_user.cpp \
    src/myqq/prot_qun.cpp \
    src/myqq/prot_misc.cpp \
    src/myqq/prot_login.cpp \
    src/myqq/prot_im.cpp \
    src/myqq/prot_group.cpp \
    src/myqq/prot_buddy.cpp \
    src/myqq/packetmgr.cpp \    
    src/myqq/md5.cpp \
    src/myqq/loop.cpp \
    src/myqq/group.cpp \
    src/myqq/debug.cpp \
    src/myqq/crc32.cpp \
    src/myqq/config.cpp \
    src/myqq/qqconn.cpp \
    src/myqq/buddy.cpp \
    src/myqq/PackageRecvThread.cpp \
    main.cpp \
    src/ui/about.cpp \
    src/ui/mainwindow.cpp \
    src/ui/login.cpp \
    src/ui/qclickedlabel.cpp \
    src/ui/buddychat.cpp \
    src/ui/verifycodedialog.cpp \
    src/db.cpp \
    src/qtq_config.cpp \
    src/dbhelper.cpp
FORMS       += src/ui/mainwindow.ui \
    src/ui/about.ui \
    src/ui/login.ui \
    src/ui/buddychat.ui \
	src/ui/verifycodedialog.ui
LEXSOURCES  += #LEXS#
YACCSOURCES += #YACCS#

LIBS        += 
DEFINES     += QT_NO_STATUSBAR \
    QT_NO_DOCKWIDGET \
    QT_NO_TOOLBAR

	
maemo5 {
	 QT += maemo5 dbus
}

# All generated files goes to the same directory
OBJECTS_DIR = build
MOC_DIR     = build
RCC_DIR     = build
UI_DIR      = build

DESTDIR     = build
TEMPLATE    = app
DEPENDPATH  +=
VPATH       += src uis
CONFIG      -= 
CONFIG      += qt debug

win32:LIBS += -lwsock32

RESOURCES = qtq.qrc
INSTALLS    += target
target.path  = /opt/qtq

INSTALLS    += desktop
desktop.path  = /usr/share/applications/hildon
desktop.files  = data/qtq.desktop

INSTALLS    += service
service.path  = /usr/share/dbus-1/services
service.files  = data/qtq.service

INSTALLS    += icon64
icon64.path  = /usr/share/icons/hicolor/64x64/apps
icon64.files  = data/64x64/qtq.png

INSTALLS += addFiles1
addFiles1.files = sound/*.wav
addFiles1.path = /opt/qtq/sound

#
# Targets for debian source and binary package creation
#
debian-src.commands = dpkg-buildpackage -S -r -us -uc -d
debian-bin.commands = dpkg-buildpackage -b -r -uc -d
debian-all.depends = debian-src debian-bin

#
# Clean all but Makefile
#
compiler_clean.commands = -$(DEL_FILE) $(TARGET)

QMAKE_EXTRA_TARGETS += debian-all debian-src debian-bin compiler_clean
